Here are some general rules concerning the execution cycle:
• For each phase of the execution cycle, the procedures that exist are executed in the following order:
1. The script(s) is/are executed.
2. The file procedure is executed (for data entry only).
3. The layout procedure is executed.
• In the  Before and  After phases, all scripts are executed, except scripts in which the Script Only if Modified check box is checked.
• The scripts for objects used for data entry are executed in the data entry order.
• The scripts for objects not used for data entry are executed in an undefined order. Your scripts should not rely on the order in which they are executed.
• During data entry, only the  During phase of the script for the modified object is executed unless the Script Only if Modified check box is unchecked. For example, when a field is modified, only that field's script will be executed.
• When records are being printed or displayed on-screen, only the scripts of the objects being printed or displayed are executed, and then only if the Script Only if Modified check box is unchecked. For example, the script of a variable in a header is executed only when the header is printed (the In Header phase).